<template>
    <el-form ref="form" :model="user" :rules="rules" label-width="80px">
        <QrCode :url="qrUrl" title="微信扫码绑定" :isDown="false" :isEdit="false" @edit="" />
    </el-form>
</template>

<script>
import { updateUserPwd } from "@/api/system/user";
import QrCode from "../../../components/QrCode.vue";
import { mapGetters } from "vuex";

export default {
    components: { QrCode },
      computed: {
    ...mapGetters(["user"]),
  },
    data() {

        return {
            // 微信登录二维码链接
            qrUrl: '',
        };
    },
    created() {
        this.getQrCode()

    },
    methods: {
        getQrCode() {
            console.log("getQrCode!!!!!：：this.$store.state.user", this.$store.state.user)
            this.qrUrl = window.location.origin + '/wechat/getWxInfo?userId='+this.$store.state.user.id+'&backPage=/wechat/backBind'

            console.log("qrUrl", this.qrUrl);
        },
        
    }
};
</script>
